/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.aaron.platform.view;

/**
 * 表格列类型
 * @author chenzhuohua
 */
public class ColumnType {

    /** 列类型 */
    private int columnType;

    /** 列名 */
    private String columnName;

    /** 列显示名 */
    private String columnText;

    /** 是否可排序 */
    private boolean sortable;

    /** 列宽 */
    private String width;

    /** 文本类型 */
    public static int COLUMN_TEXT = 1;

    /**  链接类型 */
    public static int COLUMN_LINK = 2;

    /** 输入框类型 */
    public static int COLUMN_INPUT = 3;

    /**
     * 构造方法
     * @param columnType 列类型
     * @param columnName 列名
     * @param colomnText 列显示名
     * @param sortable 是否可排
     */
    public ColumnType(int columnType, 
                           String columnName,
                           String colomnText,
                           boolean sortable,
                           String width)
    {
        this.columnType = columnType;
        this.columnName = columnName;
        this.columnText = colomnText;
        this.sortable = sortable;
        this.width = width;
    }

    public String getColumnName() {
        return columnName;
    }

    public int getColumnType() {
        return columnType;
    }

    public boolean isSortable() {
        return sortable;
    }

    public String getColumnText() {
        return columnText;
    }

    public String getWidth() {
        return width;
    }
}
